<include file="public@header"/>
<style type="text/css">
    .pic-list li {
        margin-bottom: 5px;
    }
</style>
<script type="text/html" id="photos-item-tpl">
    <li id="saved-image{id}">
        <input id="photo-{id}" type="hidden" name="photo_urls[]" value="{filepath}">
        <input class="form-control" id="photo-{id}-name" type="text" name="photo_names[]" value="{name}"
               style="width: 200px;" title="图片名称">
        <img id="photo-{id}-preview" src="{url}" style="height:36px;width: 36px;"
             onclick="imagePreviewDialog(this.src);">
        <a href="javascript:uploadOneImage('图片上传','#photo-{id}');">替换</a>
        <a href="javascript:(function(){$('#saved-image{id}').remove();})();">移除</a>
    </li>
</script>
<script type="text/html" id="files-item-tpl">
    <li id="saved-file{id}">
        <input id="file-{id}" type="hidden" name="file_urls[]" value="{filepath}">
        <input class="form-control" id="file-{id}-name" type="text" name="file_names[]" value="{name}"
               style="width: 200px;" title="文件名称">
        <a id="file-{id}-preview" href="{preview_url}" target="_blank">下载</a>
        <a href="javascript:uploadOne('图片上传','#file-{id}','file');">替换</a>
        <a href="javascript:(function(){$('#saved-file{id}').remove();})();">移除</a>
    </li>
</script>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('volunteer/adminVolunteer/index')}">志愿者管理</a></li>
        <li>
            <a href="{:url('volunteer/adminVolunteer/addLog',['id'=>$volunteer['id']])}">添加活动记录</a>
        </li>
        <li class="active"><a href="#">审核志愿者</a></li>
    </ul>
    <form action="{:url('volunteer/adminVolunteer/checkPost')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
        <div class="row">
            <div class="col-md-9">
                <table class="table table-bordered">
                    <tr>
                        <th width="100">姓名<span class="form-required">*</span></th>
                        <td>
                            <input class="form-control" type="text" style="width:400px;" required
                                   value="{$volunteer.name}"
                                   placeholder="请选择分类" onclick="doSelectCategory();" id="js-categories-name-input"
                                   readonly/>
                        </td>
                    </tr>
                    <tr>
                        <th>账号<span class="form-required">*</span></th>
                        <td>
                            <input type="hidden" name="id" value="{$volunteer.id}">
                            <input class="form-control" type="text" name="username"
                                   required value="{$volunteer.username}" readonly placeholder="请输入标题"/>
                        </td>
                    </tr>
                    <tr>
                        <th>性别</th>
                        <td>
                            <input class="form-control" type="text" name="sex"
                                   required value="{$volunteer.sex}" readonly placeholder="请输入标题"/>
                        </td>
                    </tr>
                    <tr>
                        <th>生日</th>
                        <td>
                            <input class="form-control" type="text" name="birthday"
                                   required value="{$volunteer.birthday}" readonly placeholder="请输入标题"/>
                        </td>
                    </tr>
                    <tr>
                        <th>籍贯</th>
                        <td>
                            <input class="form-control" type="text" name="jiguang"
                                   required value="{$volunteer.jiguang}" readonly placeholder="请输入标题"/>
                        </td>
                    </tr>
                    <tr>
                        <th>民族</th>
                        <td>
                            <input class="form-control" type="text" name="mingzu"
                                   required value="{$volunteer.mingzu}" readonly placeholder="请输入标题"/>
                        </td>
                    </tr>
                    <tr>
                        <th>政治面貌</th>
                        <td>
                            <input class="form-control" type="text" name="zzmm"
                                   required value="{$volunteer.jiguang}" readonly placeholder="请输入标题"/>
                        </td>
                    </tr>

                    <tr>
                        <th>学历</th>
                        <td>
                            <input class="form-control" type="text" name="xueli"
                                   required value="{$volunteer.xueli}" readonly placeholder="请输入标题"/>
                        </td>
                    </tr>
                    <tr>
                        <th>职称</th>
                        <td>
                            <input class="form-control" type="text" name="zhicheng"
                                   required value="{$volunteer.zhicheng}" readonly placeholder="请输入标题"/>
                        </td>
                    </tr>
                    <tr>
                        <th>职务</th>
                        <td>
                            <input class="form-control" type="text" name="zhiwu"
                                   required value="{$volunteer.zhiwu}" readonly placeholder="请输入标题"/>
                        </td>
                    </tr>
                    <tr>
                        <th>毕业学校及专业</th>
                        <td>
                            <input class="form-control" type="text" name="byxx"
                                   required value="{$volunteer.byxx}" readonly placeholder="请输入标题"/>
                        </td>
                    </tr>
                    <tr>
                        <th>工作单位及地址</th>
                        <td>
                            <input class="form-control" type="text" name="ggdw"
                                   required value="{$volunteer.ggdw}" readonly placeholder="请输入标题"/>
                        </td>
                    </tr>
                    <tr>
                        <th>身份证号码</th>
                        <td>
                            <input class="form-control" type="text" name="code"
                                   required value="{$volunteer.code}" readonly placeholder="请输入标题"/>
                        </td>
                    </tr>
                    <tr>
                        <th>特长爱好</th>
                        <td>
                            <input class="form-control" type="text" name="techang"
                                   required value="{$volunteer.techang}" readonly placeholder="请输入标题"/>
                        </td>
                    </tr>
                    <tr>
                        <th>联系地址</th>
                        <td>
                            <input class="form-control" type="text" name="address"
                                   required value="{$volunteer.address}" readonly placeholder="请输入标题"/>
                        </td>
                    </tr>
                    <tr>
                        <th>邮政编码</th>
                        <td>
                            <input class="form-control" type="text" name="post_code"
                                   required value="{$volunteer.post_code}" readonly placeholder="请输入标题"/>
                        </td>
                    </tr>
                    <tr>
                        <th>办公电话</th>
                        <td>
                            <input class="form-control" type="text" name="tel"
                                   required value="{$volunteer.tel}" readonly placeholder="请输入标题"/>
                        </td>
                    </tr>
                    <tr>
                        <th>手机</th>
                        <td>
                            <input class="form-control" type="text" name="phone"
                                   required value="{$volunteer.phone}" readonly placeholder="请输入标题"/>
                        </td>
                    </tr>
                    <tr>
                        <th>QQ号</th>
                        <td>
                            <input class="form-control" type="text" name="qq"
                                   required value="{$volunteer.qq}" readonly placeholder="请输入标题"/>
                        </td>
                    </tr>
                    <tr>
                        <th>服务意向</th>
                        <td>
                            <foreach name="$volunteer.yixiang" item="item">
                                {:volunteerStatus($item)}
                            </foreach>
                        </td>
                    </tr>
                    <tr>
                        <th>个人简历</th>
                        <td>
                            <textarea readonly class="form-control">
                                {$volunteer.jianli}
                            </textarea>
                        </td>
                    </tr>
                    <tr>
                        <th>备注</th>
                        <td>
                            <textarea readonly class="form-control">
                                {$volunteer.beizhu}
                            </textarea>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="col-md-3">
                <table class="table table-bordered">
                    <tr>
                        <th>照片</th>
                    </tr>
                    <tr>
                        <td>
                            <div style="text-align: center;">
                                <input type="hidden" name="photo" id="thumbnail"
                                       value="{$volunteer.photo|default=''}">
                                <a href="">
                                    <if condition="empty($volunteer.photo)">
                                        <img src="__TMPL__/public/assets/images/default-thumbnail.png"
                                             id="thumbnail-preview"
                                             width="135" style="cursor: pointer"/>
                                        <else/>
                                        <img src="{:cmf_get_image_preview_url($volunteer.photo)}"
                                             id="thumbnail-preview"
                                             width="135" style="cursor: pointer"/>
                                    </if>
                                </a>
                            </div>
                        </td>
                    </tr>


                    <tr>
                        <th>审核状态</th>
                    </tr>
                    <tr>
                        <td>
                            <select class="form-control" name="status" id="more-template-select">
                                <php>var_dump($volunteer['status']);</php>
                                <option  <if condition="$volunteer['status'] == 0"> selected="selected"</if> value="0">等待审核</option>
                                <option <if condition="$volunteer['status'] == 1">selected="selected"</if> value="1">通过审核</option>
                                <option <if condition="$volunteer['status'] == 2">selected="selected"</if> value="2">驳回审核</option>
                            </select>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
                <a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
    //编辑器路径定义
    var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">


</script>
</body>
</html>